<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <script src="/static/layui/layui.js"></script>

    <title>问卷调查</title>
        <h1> 请填写问卷！</h1>
        <div class="img">
            <a target="_blank" href="/question/questionnaire">
            <img src="icon.jpg" alt="打卡">
            </a>
            <div class="desc">健康打卡</div>
        </div>

        <div class="layui-inline" id="test-n1">


            <script  type="text/javascript">
                layui.use('laydate', function () {
                    var laydate = layui.laydate;
                    laydate.render({
                        elem: '#test-n1'
                        , position: 'static'
                         ,calendar: true
                         ,theme: 'molv'
                        ,
                     done: function(value, date){//日期时间被切换后的
                            var year = date.year,month = date.month,day = date.date;
                            var datetime = year.toString()+month.toString()+day.toString();
                            document.write(datetime+"I love JavaScript"); //多项内容之间用+号连接
                            alert(datetime); //得到日期生成的值，如：2017-08-18

                         }

                    });
                });
            </script>
        </div>
</head>
<body>

</body>
</html>